package com.esri.core.internal.tasks.ags;

import com.esri.core.io.UserCredentials;
import java.io.InputStream;
import java.util.Map;

/* loaded from: classes.dex */
public class q extends com.esri.core.internal.tasks.d<InputStream> {
    private static final long serialVersionUID = 1;

    public q(com.esri.core.internal.tasks.ags.c.e eVar, String str, UserCredentials userCredentials) {
        super(eVar, str, userCredentials);
    }

    @Override // com.esri.core.internal.tasks.a
    /* renamed from: a */
    public InputStream execute() throws Exception {
        Map<String, String> generateRequestParams = this.actionInput.generateRequestParams();
        generateRequestParams.put("f", "json");
        generateRequestParams.put("jsonStream", "true");
        return com.esri.core.internal.io.handler.a.b(this.serviceURL + "/queryRelatedRecords", generateRequestParams, getServiceCredentials());
    }
}
